﻿package common 
{
	import flash.ui.Keyboard;
	
	/**
	 * ゲーム内で使用するキーコード
	 */
	public class KeyCode 
	{
		private var code:uint;
		public function KeyCode(code:uint):void {
			this.code = code;
		}
		public static const LEFT:KeyCode =  new KeyCode(Keyboard.LEFT);
		public static const UP:KeyCode = new KeyCode(Keyboard.UP);
		public static const RIGHT:KeyCode = new KeyCode(Keyboard.RIGHT);
		public static const DOWN:KeyCode = new KeyCode(Keyboard.DOWN);
		public static const OK:KeyCode = new KeyCode(Keyboard.ENTER);
		public static const CANCEL:KeyCode = new KeyCode(Keyboard.ESCAPE);
	}
	
}